package com.shenhangye.pushlive.util

import android.content.res.AssetManager

class AntiDistortion {

    init {
        System.loadLibrary("antiDistortion")
    }
    /*
    *Set Texture ID when drawing
    * */
    external fun setTextId (id: Int)
    /*
    * Set AssetManager to get assets file
    * */
    external fun registerAssetManager (assetManager: AssetManager)
    /*
    * Init GLES
    * */
    external fun glInit()
    /*
    * Set Size
    * */
    external fun glResize(width: Int, height: Int)
    /*
    * Draw Frame
    * */
    external fun glDraw()
    /*
    * Set Texture Coordinate
    * */
    external fun setTexXY(texPtsX: DoubleArray?, texPtsY: DoubleArray?)
}